package test;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
import java.util.List;
import java.util.stream.Collectors;

public class demo999 {
    static final int size = 5;

    public static void main(String[] args) {
        List<String> questions = getQuestions();
        questions.forEach(System.out::println);
    }

    public static List<String> getQuestions() {
        String filePath = "笔记/a";
        List<String> questions = new ArrayList<>();

        try (BufferedReader br = new BufferedReader(new FileReader(filePath))) {
            questions = br.lines().collect(Collectors.toList());
        } catch (IOException e) {
            System.err.println("Error reading file: " + e.getMessage());
        }
        return questions;
    }
}




